package com.wisezone.workflow.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wisezone.common.bean.entity.BaseEntity;

/**
 * 活动对象
 * 
 * @author tss 2009-09-05
 * 
 */
@Entity
@Table(name = "wf_activity")
public class WfActivity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7240753490609838123L;

	/**
	 * ID
	 */
	private Long id;

	/**
	 * 流程模版ID
	 */
	@Column(name = "process_def_id", length = 8)
	private Long processDefId;


	/**
	 * 活动名称
	 */
	@Column(name = "name", length = 50)
	private String name;

	/**
	 * 活动类型（0：开始；1：结束；2：中间）
	 */
	@Column(name = "category", length = 8)
	private Long category;

	/**
	 * 任务类型
	 */
	@Column(name = "task_category", length = 8)
	private Long taskCategory;

	/**
	 * 位置
	 */
	@Column(name = "position", length = 20)
	private String position;

	/**
	 * 排序
	 */
	@Column(name = "order_by", length = 4)
	private Integer orderBy;

	/**
	 * 备注
	 */
	@Column(name = "memo", length = 100)
	private String memo;

	public Long getProcessDefId() {
		return processDefId;
	}

	public void setProcessDefId(Long processDefId) {
		this.processDefId = processDefId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCategory() {
		return category;
	}

	public void setCategory(Long category) {
		this.category = category;
	}

	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Long getTaskCategory() {
		return taskCategory;
	}

	public void setTaskCategory(Long taskCategory) {
		this.taskCategory = taskCategory;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}